import request from '@/router/axios';

//工序配置根据工序id获取工序列表基本信息
export const getProcessData = (params) => {
    return request({
        url: `/library/profession-tech-process-basic/get-by-id`,
        method: 'get',
        params
    })
} 

//工序配置工序列表基本信息新增&修改
export const addProcessData = (data) => {
    return request({
        url: `/library/profession-tech-process-basic/add`,
        method: 'post',
        data
    })
} 

//工序配置获取操作指导
export const getprocess = (params) => {
    return request({
        url: `/library/profession-tech-process-guide/get-by-id/${params}`,
        method: 'get', 
    })
} 

//工序配置获取上传图片
export const getFileList = (params) => {
    return request({
        url: `/library/profession-tech-process-file/list`,
        method: 'get',
        params
    })
} 


//工序配置新增上传图片
export const addFileList = (data) => {
    return request({
        url: `/library/profession-tech-process-file/add`,
        method: 'post',
        data
    })
} 


//工序配置删除上传图片
export const delFileList = (data) => {
    return request({
        url: `/library/profession-tech-process-file/delete/${data.id}`,
        method: 'post',
    })
} 


//工序配置获取环境信息
export const getVibeInfoList = (params) => {
    return request({
        url: `/library/profession-tech-process-env/page`,
        method: 'get',
        params
    })
} 

//工序配置获取环境信息
export const addVibeInfoList = (data) => {
    return request({
        url: `/library/profession-tech-process-env/add`,
        method: 'post',
        data
    })
} 

//工序配置获取环境信息
export const delVibeInfoList = (data) => {
    return request({
        url: `/library/profession-tech-process-env/delete`,
        method: 'post',
        data
    })
} 

